﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class MyMessageBox : Form
    {
        public MyMessageBox()
        {
            InitializeComponent();
        }

        private void MyMessageBox_Load(object sender, EventArgs e)
        {
            main_form f1 = (main_form)this.Owner;//将本窗体的拥有者强制设为Form1类的实例f1
            label1.Text = f1.MessageBoxText_SlaveAck();
            label1.BackColor = f1.MessageBoxText_color();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
